< previous page page_723 next page >

Page 723
1. Start a new ActiveX document project.
2. Create the user interface for the application.
3. Write the code to perform the application's tasks.
4. Test and debug the application.
5. Use the Package and Deployment Wizard to create an Internet download setup.
Obviously, several details are involved in each of these steps, but you can see that the process is something you are familiar with. To walk through the process of creating an ActiveX document, you will create a mortgage calculator like the one you created in Chapter 2. Using this same application will illustrate the similarities between creating an ActiveX document and a standard Visual Basic program.
note.gif The preceding steps refer to creating an application. Because an ActiveX document is an interactive application as opposed to a static file, such as a word processing document, the term application is often used to refer to an ActiveX document. square.gif

Starting an ActiveX Document Project
The first step toward creating an ActiveX document is to start your project. You do so by selecting New Project from the File menu. The New Project dialog box then appears (see Figure 32.2). From this dialog box, select the option to create an ActiveX Document EXE by double-clicking the icon. This action starts a new project containing a single User Document, UserDocument1. Double-click the object in the Project Explorer window and you should see the blank designer screen, as shown in Figure 32.3.
0723-01.jpg
Figure 32.2
The New Project dialog, which can
be desplayed by pressing Ctrl+N, sets
up the initial project configuration.
note.gif If the UserDocument is not displayed automatically, double-click the UserDocument object in the Project window to display it. square.gif

Notice that the UserDocument designer looks a lot like a form designer without a border. As a matter of fact, it is also like the UserControl object that you use to create ActiveX controls. You create the user interface for the ActiveX document here, just like with a form. (For more information about creating ActiveX controls, see Chapter 14, "Creating ActiveX Controls.")

 
< previous page page_723 next page >